package AJava1月.EJava第五周.练习题;

import java.util.Scanner;

public class switch用户选择 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入电话☎️按键号码");
        int a = sc.nextInt();

        switch(a){
            case 1 -> System.out.println("机票查询");
            case 2 -> System.out.println("机票预订");

            case 3 -> System.out.println("机票改签");
           // case 4-> System.out.println("退出服务");
            default -> System.out.println("退出服务");
        }
    }
    }
